package com.timmy.ble.callback;

import com.inuker.bluetooth.library.connect.listener.BluetoothStateListener;
import com.inuker.bluetooth.library.connect.response.BleConnectResponse;
import com.inuker.bluetooth.library.connect.response.BleNotifyResponse;
import com.inuker.bluetooth.library.connect.response.BleWriteResponse;
import com.inuker.bluetooth.library.model.BleGattProfile;
import com.inuker.bluetooth.library.search.SearchResult;

import java.util.UUID;

/**
 * 接口回调统一管理类
 */

public abstract class BleCallbackImpl extends BluetoothStateListener implements BleCallback, BleConnectResponse, BleWriteResponse,
        BleNotifyResponse {

    @Override
    public void onScan(SearchResult result) {

    }

    @Override
    public void onScanStop() {

    }

    // 蓝牙打开关闭状态的回调
    @Override
    public void onBluetoothStateChanged(boolean openOrClosed) {
        // true表示蓝牙已打开，false表示蓝牙关闭
    }

    // 蓝牙连接
    @Override
    public void onResponse(int code, BleGattProfile data) {

    }

    // 写入状态
    @Override
    public void onResponse(int code) {

    }

    // 通知的回调
    @Override
    public void onNotify(UUID service, UUID character, byte[] value) {

    }

    // 蓝牙信号返回
    public void onResponse(int code, int data) {

    }

    // 蓝牙连接状态监听
    public void onConnectStatusChanged(String mac, int status) {

    }
}
